package com.JdkProxy.secondexample.pojo;

/**
 * @User c.c
 * @Since 2022/11/21
 * @Time 10:49
 * @Description 小明
 */

public class XiaoMingStudent implements PersonMajor{
  private String name;
  public XiaoMingStudent(String name) {
    this.name = name;
  }

  public void giveMoney() {
    try {
      //假设数钱花了一秒时间
      Thread.sleep(1000);
    } catch (InterruptedException e) {
      e.printStackTrace();
    }
    System.out.println(name + "上交班费50元");
  }
}
